#pragma once

#include "header.h"

int CreateTable() {

	if (!CheckTable())   return 0;

	string Name; cin >> Name;

	string x; getline(cin, x);

	string command = "type nul > " + Name + ".txt";

	system(command.c_str());

	return 1;

}

int DeleteTable() {

	if (!CheckTable())   return 0;

	string command, Name;

	cin >> Name;

	command = "del " + Name + ".txt";

	system(command.c_str());

	return 1;

}

int ShowTable() {

	if (!CheckTable())   return 0;

	string Name; cin >> Name;

	string command = "type " + Name + ".txt";

	system(command.c_str());

	return 1;

}
